package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.kly.user.db.dao.TMessagePushDao;
import com.kly.user.db.entity.TMessagePushEntity;
import org.springframework.stereotype.Repository;

/**
* User: linqu
* Date: 2023-07-14
* Time: 09:27:49.096
*/

@Repository
public class TMessagePushDaoImpl extends AbstractBaseMapper<TMessagePushEntity> implements TMessagePushDao {

    @Override
    public void addMessage(String fromUserCode, String toUserCode, Integer msgType, Integer toApp, String msgContent) {
        TMessagePushEntity entity = new TMessagePushEntity();
        entity.setFromUserCode(fromUserCode).setToUserCode(toUserCode)
                .setMsgType(msgType).setToApp(toApp).setMsg(msgContent).setStatus(0);
        this.insert(entity);
    }
}